Pod::Spec.new do |s|
  s.name             = 'AwesomeUBaseModule'
  s.version          = '0.1.0'
  s.summary          = 'A short description of AwesomeUBaseModule.'
  s.description      = <<-DESC
  TODO: Add long description of the pod here.
                        DESC
  s.homepage         = 'https://gitee.com/AwesomeU'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'xieqiang' => 'dl_xq@sina.com' }
  s.source           = { :git => 'git@gitee.com:AwesomeU/AwesomeUBaseModule.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '9.0'

  # s.source_files = 'AwesomeUBaseModule/Classes/**/*'
  
  # s.resource_bundles = {
  #   'AwesomeUBaseModule' => ['AwesomeUBaseModule/Assets/*.png']
  # }

  s.subspec 'CommonConstant' do |ss|
    ss.source_files = 'AwesomeUBaseModule/Classes/CommonConstant/**/*'
  end

  s.subspec 'Extensions' do |ss|
    ss.source_files = 'AwesomeUBaseModule/Classes/Extensions/**/*'
    ss.dependency 'AwesomeUBaseModule/CommonConstant'
  end

  s.subspec 'Protocols' do |ss|
    ss.source_files = 'AwesomeUBaseModule/Classes/Protocols/**/*'
  end
  
  s.subspec 'Managers' do |ss|
      ss.source_files = 'AwesomeUBaseModule/Classes/Managers/**/*'
      ss.dependency 'AwesomeUBaseModule/Protocols'
  end

  # s.frameworks = 'UIKit', 'AVFoundation', 'Foundation'
  # s.dependency 'AFNetworking', '~> 2.3'
end
